﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SPlayerItem extends Object
    {
        public var playerId:int;
        public var uid:String;
        public var itemCode:int;
        public var itemAmount:int;
        public var posType:int;
        public var createDt:Date;
        public var jsStr:String;

        public function SPlayerItem()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.playerId);
            param1.writeString(this.uid);
            param1.writeInt(this.itemCode);
            param1.writeShort(this.itemAmount);
            param1.writeShort(this.posType);
            param1.writeDate(this.createDt);
            param1.writeString(this.jsStr);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.playerId = param1.readInt();
            this.uid = param1.readString();
            this.itemCode = param1.readInt();
            this.itemAmount = param1.readShort();
            this.posType = param1.readShort();
            this.createDt = param1.readDate();
            this.jsStr = param1.readString();
            return;
        }// end function

    }
}
